package com.dayuan.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import com.dayuan.bean.Order;
import com.dayuan.vo.BackOrderVo;

@MapperScan
public interface BackOrderMapper {

	public List<Order> selectOrderByMid(@Param("mid") Integer mid);
	/**
	 * 查询总行数
	 * 
	 * @return
	 */
public int selectCountOrderByParam(BackOrderVo backOrderVo);
    /**
     * 查询总行数
     * 
     * @return
     */
    public List<Order> selectCountOrderByParamForPage(@Param("backOrderVo") BackOrderVo backOrderVo,@Param("startIndex")Integer startIndex,@Param("pageNum")
    		Integer pageNum);
	
	public int updateOrder(Order order);
	
	public Order selectOrderByOrderId(@Param("orderId")Long orderId);
	
	public List<Order>  selectOrders(@Param("mid")Integer mid);
	
	
}
